package com.example.demo.service;

import com.example.demo.pojo.OrderForm;
import com.example.demo.util.GetOrderSelId;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderFormService {
    List<GetOrderSelId> getOrderFormAll();
    int deleteByPrimaryKey(Integer orderid);

    int insert(OrderForm record);

    int insertSelective(OrderForm record);

    OrderForm selectByPrimaryKey(Integer orderid);

    int updateByPrimaryKeySelective(OrderForm record);

    int updateByPrimaryKey(OrderForm record);
    int updateOrderStatuId(int id);
    int updateCancelled( int id);
    int updateOrderStatuDeliverGoods(int id);
    int updateOrderStatuAfterSale(int id);
    List<GetOrderSelId> getOrderUserId(Integer userId);
    List<GetOrderSelId> getOrderWareId(Integer wareId);
    GetOrderSelId getOrder(String order);
    OrderForm getOrderNumber( String  orderNumber);

    int updateOrderStatus(int orderStatusId,String ordernumber);

    OrderForm getOne(String ordernumber);

}
